SG RegExp
ReplaceString Property

©1998 by Stinga

Overview Methods Properties Pattern Syntax
Description

Read only. Returns replacement string.

Syntax

object.ReplaceString(template)

Part Description
object The object is always RegExp.
template Template string
Remarks

After a successful Match you can retrieve a replacement string as an alternative to building up the various substrings by hand.

Each character in the template string will be copied to the return value except for the following special characters:

&   The complete matched string (sub-string 0).
\1  Sub-string 1
... and so on until...
\9 Sub-string 9